
function productsAdd() {
    let data=new FormData();//传文件
    data.append("cuisine",$("#casetype").val());
    data.append("title",$("#title").val());
    data.append("imgHerf",$("#imgHerf")[0].files[0]);
    data.append("content",$("#content").val());
    data.append("contentcontent",$("#contentcontent").val());
    let da=myAjaxTwo("/producat/casetypes/add",data,"post");
    if (da.count==1){
        alert("插入成功！");
        $('#reght').load('/back/products/productFindAll.html')
    } else {
        alert("插入失败！");
    }
}













